package com.zmn.mcc.persistence.interfaces.role;

import com.zmn.mcc.model.entity.role.McRoleSys;

import java.util.List;

/**
 * @author heguanghua
 * @since 2020/04/14 10:56
 */
public interface RoleSysDao {

    McRoleSys findByKey(McRoleSys roleSys);

    List<Integer> listSysIdByRoleId(Integer roleId);

    List<Integer> listSysIdByStaffId(Integer staffId);

    Integer countByQuery(McRoleSys roleSys);


    Integer insert(McRoleSys roleSys);

    Integer insertByBatch(List<McRoleSys> roleSyses);


    Integer deleteByKey(McRoleSys roleSys);

    Integer deleteByQuery(McRoleSys roleSys);
}
